//
//  CollectionCell.m
//  cityStar
//
//  Created by joyban on 14-12-25.
//  Copyright (c) 2014年 tiny. All rights reserved.
//

#import "CollectionCell.h"

@implementation CollectionCell

+(CGFloat)heightOfTableCell
{
    return 350;
}

-(void)configWithMessage:(NSArray *)message
{
    NSArray *array = [[NSArray alloc]initWithArray:message];
    [self.heardImageOne sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://api.icszx.com/image/c/id/%@/w/246/h/190/m/0",array[0][@"iamge"]]] placeholderImage:[UIImage imageNamed:@"shangpu"]];
    self.NameLabelOne.text = array[0][@"name"];
    self.btnTouch1.tag = [array[0][@"id"] intValue];
    
    [self.heardImageTwo sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://api.icszx.com/image/c/id/%@/w/246/h/190/m/0",array[1][@"iamge"]]] placeholderImage:[UIImage imageNamed:@"shangpu"]];
    self.NameLabelTwo.text = array[1][@"name"];
    self.btnTouch2.tag = [array[1][@"id"] intValue];

    [self.heardImageThree sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://api.icszx.com/image/c/id/%@/w/246/h/190/m/0",array[2][@"iamge"]]] placeholderImage:[UIImage imageNamed:@"shangpu"]];
    self.NameLabelThree.text = array[2][@"name"];
    self.btnTouch3.tag = [array[2][@"id"] intValue];

    [self.heardImageFour sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://api.icszx.com/image/c/id/%@/w/246/h/190/m/0",array[3][@"iamge"]]] placeholderImage:[UIImage imageNamed:@"shangpu"]];
    self.NameLabelFour.text = array[3][@"name"];
    self.btnTouch4.tag = [array[3][@"id"] intValue];

}

- (void)awakeFromNib {
    self.btnView1.layer.borderColor = [UIColor colorWithWhite:0.710 alpha:1.000].CGColor;
    self.btnView1.layer.borderWidth = 0.5;
    self.btnView2.layer.borderColor = [UIColor colorWithWhite:0.710 alpha:1.000].CGColor;
    self.btnView2.layer.borderWidth = 0.5;
    self.btnView3.layer.borderColor = [UIColor colorWithWhite:0.710 alpha:1.000].CGColor;
    self.btnView3.layer.borderWidth = 0.5;
    self.btnView4.layer.borderColor = [UIColor colorWithWhite:0.710 alpha:1.000].CGColor;
    self.btnView4.layer.borderWidth = 0.5;}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

- (IBAction)Brandbtn_Action:(UIButton *)sender {
    [self.delegate senderBtnClick:sender];
}

@end
